package config

import (
	"net"
	"strconv"

	"databasex"
	"databasex/dbx"
)

const (
	PostgresUser     = "postgres"
	PostgresPassword = "root"
	PostgresPort     = 5432
)

var PostgresSQL = dbx.PostgresSQL{
	DataBase: dbx.DataBase{
		UserName: PostgresUser,
		Password: PostgresPassword,
		Address:  net.JoinHostPort(databasex.ServerConfig.Host, strconv.Itoa(PostgresPort)),
		DbName:   databasex.ServerConfig.Database,
	},
	Ssl: dbx.TLS{},
}
var PostgresDSN = PostgresSQL.DSN(nil)
